﻿<!--revision $Id$-->
<Window x:Class="DateTimeAxisTest.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:parts="clr-namespace:OpenWPFChart.Parts;assembly=OpenWPFChart.Parts"
	Title="DateTime Axis Element Test" SizeToContent="WidthAndHeight">

	<Window.InputBindings>
		<KeyBinding Key="Add" Modifiers="Control" CommandParameter="1.2" Command="NavigationCommands.Zoom" />
		<KeyBinding Key="Subtract" Modifiers="Control" CommandParameter="-1.2" Command="NavigationCommands.Zoom" />
	</Window.InputBindings>
	<Window.CommandBindings>
		<CommandBinding Command="NavigationCommands.Zoom" Executed="ZoomExecutedCommandHandler"/>
	</Window.CommandBindings>
	
	<DockPanel>
		<!-- Menu -->
		<Menu DockPanel.Dock="Top">
			<MenuItem Header="_File">
				<MenuItem Header="_Exit" Click="Exit_Click"/>
			</MenuItem>
			<MenuItem Header="_View">
				<MenuItem Header="Axis _Properties" Click="AxisProperties_Click"/>
				<Separator/>
				<MenuItem Header="Zoom_In (Ctrl+NumPad+)" Command="Zoom" CommandParameter="1.2"/>
				<MenuItem Header="Zoom_Out (Ctrl+NumPad-)" Command="Zoom" CommandParameter="-1.2"/>
			</MenuItem>
		</Menu>
		
		<Grid Name="panel">
			<parts:DateTimeAxis Name="axis">
				<parts:DateTimeAxis.AxisScale>
					<parts:ChartDateTimeScale Start="2008/1/1" Stop="2008/1/31" TickUnits="Days" TickStep="5" 
											  Scale="10" LongTickRate="2"/>
				</parts:DateTimeAxis.AxisScale>
			</parts:DateTimeAxis>
		</Grid>
	</DockPanel>
</Window>
